第 1 步:请注意,我们为您提供了多种功能。我们将在创建程序时调用它们。让我们开始吧!

  • 在逻辑和,将Define Function with Docstring拖到MAIN FUNCTION上方。
  • 然后,将Main Function拖到它下面的位置: MAIN FUNCTION
  • 最后,将Function Call into Variablemain()中,并将my_var更改为user_input
  • 如果用户导致错误,此功能将保护程序。点击完成后运行

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)